package priv.wangy.micro.common.po.http.rspn.code;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 鉴权异常响应
 *
 * @author zhangjq
 * @since 2023-10-24
 */
@Getter
@AllArgsConstructor
public enum AuthErrorEnum implements IHttpRspnEnum {
    /**
     * 鉴权错误响应码
     */
    INVALID_ACCOUNT("010001", "无效账号"),
    WRONG_PWD("010002", "密码错误"),
    INVALID_TOKEN("010003", "无效的token"),
    AUTHORITY_EXPIRED("010004", "鉴权已过期"),
    TOO_TIMES("010005", "请勿频繁获取验证码"),
    CODE_EXPIRED("010006", "验证码已过期"),
    WRONG_CODE("010007", "验证码错误"),
    IP_FAILURE("010008", "失败次数过多，限制登录"),
    NO_AUTH("010009", "无操作权限"),
    LOGIN_CLOSED("010011", "系统暂未开放");

    private final String rspnCode;

    private final String rspnMsg;
}
